package com.info.zhiduoduo.pay.sdk.zhaoshangbank.model.request.tradebulter.detail;

import com.google.common.collect.Lists;
import com.info.zhiduoduo.pay.formbean.zhaoshangtradebulter.QuerySubLedgerBalanceFormBean;

import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class QuerySubLedgerBalanceInfo {

	/** 账号	accnbr	String(35)	Y */
	private String accnbr;
	/** 记账子单元编号	dmanbr	String(20)		填空表示查询该账号下所有记账子单元信息 */
	private String dmanbr;

	//续传
	private String rsv50z;

	public static List<QuerySubLedgerBalanceInfo> ofList(QuerySubLedgerBalanceFormBean formBean,String rsv50z) {
		List<QuerySubLedgerBalanceInfo> list = Lists.newArrayList();
		QuerySubLedgerBalanceInfo info = new QuerySubLedgerBalanceInfo().setAccnbr(formBean.getAccountNo())
																		.setDmanbr(formBean.getLedgerNo())
																		.setRsv50z(rsv50z);
		list.add(info);
		return list;
	}
}
